package com.chance.cc.crawler.prod.command.script.gome;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;
import com.chance.cc.crawler.prod.command.job.domain.commerce.gome.realtime.GomeCrawlerScheduleJob;

public class GomeCommonCrawlerScript {
    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.217",9599);
    public static void publishCrawlerNodeScript(){
        HttpPage httpPage = scriptCommand.publishCrawlerScript2Consul(GomeCrawlerScheduleJob.domain);
        System.out.println("发布采集脚本："+httpPage.getRawText());
    }

    public static void main(String[] args) {
        publishCrawlerNodeScript();
    }
}

